﻿using AutoMapper;
using InventoryIssue.API.Write.Application.Command.Allocate;
using InventoryIssue.API.Write.Application.Command.Reportloss;
using InventoryIssue.API.Write.Application.Command.Stocktaking;
using InventoryIssue.Domain;

namespace InventoryIssue.API.Write
{
    public class MyAutoMapper : Profile
    {
        public MyAutoMapper()
        {
            //盘点
            CreateMap<CreateStocktakingCommand,StocktakingModel>().ReverseMap();
            CreateMap<UpdateStocktakingCommand, StocktakingModel>().ReverseMap();
            //调拨
            CreateMap<CreateAllocateCommand, AllocateModel>().ReverseMap();
            //报损
            CreateMap<CreateReportlossCommand, ReportlossModel>().ReverseMap();
        }
    }
}
